/**
 * Created by Administrator on 14-9-1.
 */
$(function(){
    $.ajaxSetup({cache:false});

    $("#reselectCcfBanksDialog").dialog({
        autoOpen: false,
        modal: true,
        resizable: false,
        title: '重新选择付款银行',
        width:850,
        height:350
    });

    $("#reselectClick").click(function(){
        $("#reselectCcfBanksDialog").dialog("open");
    });

    $("#r_c_c_f_0").attr("checked","checked");
});

function ccfastSel(bankImgId,obj){
    $("#"+bankImgId).attr("checked","checked");
}
function reselectSubmit(){
    var bankCode = $("#bankCode").val();
    var rePayBankCode = $('input[name="rePayBankCode"]:checked').val();
    if(bankCode == rePayBankCode){
        $("#reselectCcfBanksDialog").dialog("close");
    }else{
        $("#ccfbankPayForm").submit();
    }
}